package com.ruoyi.gcgl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gcgl.mapper.SjCarserviceMapper;
import com.ruoyi.gcgl.domain.SjCarservice;
import com.ruoyi.gcgl.service.ISjCarserviceService;
import com.ruoyi.common.core.text.Convert;

/**
 * 车辆管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-26
 */
@Service
public class SjCarserviceServiceImpl implements ISjCarserviceService 
{
    @Autowired
    private SjCarserviceMapper sjCarserviceMapper;

    /**
     * 查询车辆管理
     * 
     * @param id 车辆管理主键
     * @return 车辆管理
     */
    @Override
    public SjCarservice selectSjCarserviceById(Long id)
    {
        return sjCarserviceMapper.selectSjCarserviceById(id);
    }

    /**
     * 查询车辆管理列表
     * 
     * @param sjCarservice 车辆管理
     * @return 车辆管理
     */
    @Override
    public List<SjCarservice> selectSjCarserviceList(SjCarservice sjCarservice)
    {
        return sjCarserviceMapper.selectSjCarserviceList(sjCarservice);
    }

    /**
     * 新增车辆管理
     * 
     * @param sjCarservice 车辆管理
     * @return 结果
     */
    @Override
    public int insertSjCarservice(SjCarservice sjCarservice)
    {
        return sjCarserviceMapper.insertSjCarservice(sjCarservice);
    }

    /**
     * 修改车辆管理
     * 
     * @param sjCarservice 车辆管理
     * @return 结果
     */
    @Override
    public int updateSjCarservice(SjCarservice sjCarservice)
    {
        return sjCarserviceMapper.updateSjCarservice(sjCarservice);
    }

    /**
     * 批量删除车辆管理
     * 
     * @param ids 需要删除的车辆管理主键
     * @return 结果
     */
    @Override
    public int deleteSjCarserviceByIds(String ids)
    {
        return sjCarserviceMapper.deleteSjCarserviceByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除车辆管理信息
     * 
     * @param id 车辆管理主键
     * @return 结果
     */
    @Override
    public int deleteSjCarserviceById(Long id)
    {
        return sjCarserviceMapper.deleteSjCarserviceById(id);
    }
}
